import { useDispatch, useSelector } from 'react-redux'
import type { TypedUseSelectorHook } from 'react-redux'
import type { RootState, AppDispatch } from './store'


// 暴露针对当前应用数据的useDispatch
export const useAppDispatch: () => AppDispatch = useDispatch

// 暴露针对当前应用数据的useSelector
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector